package com.Cychat.doctor.mapper;

import com.Cychat.commons.entity.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Auther: 谢宝辉  <br/>
 * Date: 2025/11/6:11:12  <br/>
 * Description: 用户Mapper
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * Auther: 谢宝辉  <br/>
     * Date: 2025/11/6:11:53  <br/>
     * Description:根据用户ID获取用户信息
     */
    @Select("SELECT * FROM user WHERE user_id = #{userId}")
     User getUserById(Long userId);
}
